#include "../src/AdvPOSIXMsgqueue.hpp"
#include <iostream>

int main()
{
  AdvPOSIXMsgqueue queue("/TEST_QUEUE");
  while(true)
  {
    std::string val;
    std::cout<<"输入一段文字(回车结束): ";
    std::cin>>val;
    queue<<val;
    std::cout<<"消息已发送"<<std::endl;
  }
}
